<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ include file="/wesite/view/common/base.jsp" %>
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport"
          content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>支付失败</title>
    <%@ include file="/wesite/view/common/common.jsp" %>
    <style type="text/css">
        html, body {
            background: #fff;
        }

        .success-pay-page img {
            width: 4.586667rem;
        }

        .success-pay-page .text p.a {
            text-align: center;
            color: #ff6767;
            font-weight: bold;
            font-size: 1.2rem;
            margin-bottom: 10px;
        }
    </style>
</head>
<body>
<div class="success-pay-page">
    <img src="${ctx}/wesite/images/pay-failure.png">
    <div style="white-space: nowrap;" class="text">
        <p class="a">${(message==null||message eq "")?"支付失败":message}</p>
        <c:if test="${payment!=null}">
            <p>
                订单类型：
                <c:choose>
                    <c:when test="${payment.order_type=='PRODUCT_ORDER'}">
                        商品订单
                    </c:when>
                    <c:otherwise>
                        未知商品
                    </c:otherwise>
                </c:choose>
            </p>
            <p>订单编号：${payment.order_sn}</p>
            <p>订单金额：￥${payment.amount}</p>
            <p>支付方式：微信支付</p>
        </c:if>
        <c:if test="${payment==null&&cod eq 'true'}">
            <p>
                订单类型：
                <c:choose>
                    <c:when test="${orderType eq 'PRODUCT_ORDER'}">
                        商品订单
                    </c:when>
                    <c:otherwise>
                        未知商品
                    </c:otherwise>
                </c:choose>
            </p>
            <p>订单编号：${orderSn} </p>
            <p>支付方式：货到付款</p>
        </c:if>
    </div>
    <div class="btn">
        <a href="${ctx}/we/WeOrderlist">重新支付</a>
        <a href="${ctx}/we/index">返回首页</a>
    </div>
</div>
</body>
<script type="text/javascript">
    apiready = function () {
        api.parseTapmode();
    }
</script>
</html>